-
Notifications
You must be signed in to change notification settings - Fork 1.1k
field: Document return value of fe_sqrt() #1347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
field: Document return value of fe_sqrt() #1347
Conversation
|
@stratospher Interested in reviewing this small PR? |
stratospher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK c66c30c.
c66c30c to
cc1ad2f
Compare
|
ACK cc1ad2f. |
src/field.h
Outdated
| * Performs {r = sqrt(a)} and returns 1 if sqrt(a) exists. | ||
| * Performs {r = sqrt(-a)} and returns 0 otherwise; then sqrt(-a) exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe case distinction like this is clearer?
* If sqrt(a) exists, performs {r = sqrt(a)} and returns 1.
* Otherwise, sqrt(-a) exists. The function performs {r = sqrt(-a)} and returns 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Co-authored-by: Jonas Nick <jonasd.nick@gmail.com>
cc1ad2f to
5779137
Compare
|
ACK 5779137 |
theStack
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 5779137
No description provided.